home *** CD-ROM | disk | FTP | other *** search
/ Acorn Risc Technologies StrongARM CD-ROM / Acorn Risc Technologies StrongARM CD-ROM.iso / software / apps / powerbase / Docs / Customise < prev    next >
Encoding:
Text File  |  1995-08-21  |  15.9 KB  |  324 lines

  1. Ch 14 − Customising Powerbase
  2.  
  3. This chapter describes all the things you can do to influence the way
  4. Powerbase looks and functions.
  5.  
  6. 14.1  Overall control of the database
  7.  
  8. A Powerbase database is normally controlled in four ways:−
  9.  
  10. •       mouse-clicks on the keypad
  11.  
  12. •       keystrokes which mimic the actions of the keypad
  13.  
  14. •       choices from the main menu
  15.  
  16. •       choices from the icon-bar menu
  17.  
  18. Each of these can be disabled by deselecting one of the option switches on
  19. the Password window (see 11.2).  The main reason why you might want to do
  20. this is to provide limited facilities to someone else who is using your
  21. database.  It doesn’t, on the face of it, make a lot of sense to disable
  22. both the keypad and the keystroke-equivalents as no browsing or editing
  23. would then be possible.  You can, however, place some or all of the keypad
  24. buttons on the record screen itself (see 4.2.9) thus allowing you to choose
  25. what functions you want to allow access to.  You might, for example, wish to
  26. provide only the “Next record”, “Previous record” and “Search” buttons. 
  27. Define these as Button fields at the time the record is being designed then
  28. disable the keypad and keystroke equivalents.
  29.  
  30. Other switches in the Password window enable you to stop the user exporting
  31. data as CSV files or subsets or printing reports.
  32.  
  33. 14.2  Defining the function keys
  34.  
  35. Any button on the keypad may have its action duplicated by one of the keys
  36. F1-F11, with or without the use of Shift, Ctrl or both.
  37.  
  38. Point at the button to which you wish to assign a key and click MENU to
  39. display the keypad menu. Assign leads to a window which shows the present
  40. key-assignment, if any. Use the “bump” icons to select the required function
  41. key and, if desired, select one or both of the switches for Shift and Ctrl.
  42. Click on the Assign button and you will now find that the assigned key
  43. exactly mimics the keypad button − even to the extent of actually “pressing”
  44. the button when you type the key.
  45.  
  46. One important constraint should be noted. Whatever key you assign to the
  47. Search button, Powerbase will automatically assign the shifted version of
  48. this key to the “search all subfiles” function (see 2.3.1). For this reason
  49. you should assign an unshifted key to Search and avoid assigning the shifted
  50. version to any other keypad button.
  51.  
  52. You may save your key definitions by choosing Save choices from the keypad
  53. menu and you will find them operative next time you use Powerbase. Please
  54. note that your definitions work with all the databases you use; there is no
  55. facility for saving separate assignments for each database. The default
  56. keystrokes (together with some which duplicate non-keypad actions) are
  57. listed in Appendix B.  If they have been redefined you may restore the
  58. defaults by choosing Defaults from the keypad menu. If you wish to “lose”
  59. the redefined keystrokes permanently you should restore the defaults as
  60. described then Save choices.
  61.  
  62. List keys on the keypad menu displays all the key definitions (including
  63. those for non-keypad functions) in a window from which the information may
  64. be saved as a text file.
  65.  
  66. 14.3  Print options
  67.  
  68. The Print options window, accessible from the Print submenu or by typing
  69. Shift Print, was described in some detail in 3.5 but a few features still
  70. require comment.  You may set up this window to suit the requirements for a
  71. particular database and then save the set-up as part of the database by
  72. clicking on Save choices with the in database radio button selected. 
  73.  
  74. A Save box appears which, by default, saves the options file in the PrintRes
  75. directory under the name PrtOptions. A file of that name, in that directory,
  76. is read when the database is subsequently re-opened and will set up the
  77. print options as you left them. You can, of course, give the file a
  78. different name and even save it in a different place if you wish.  Print
  79. option files are recognisable by their icon, which bears a large “P”.  Some
  80. users like to have several of them in their database’s PrintRes directory to
  81. do different jobs. It is always possible to load the one you want by opening
  82. the PrintRes directory (Show resources from Print submenu or, alternatively,
  83. Ctrl R) and double-clicking on  the required file or dragging it onto the
  84. record window. 
  85.  
  86. Should you wish to “throw out” your special keys set-up during a working
  87. session with the database you can restore the default settings by clicking
  88. Load default. If you like your own setup better than the default and wish to
  89. use it for all your databases then select the as default radio button before
  90. clicking Save choices.  The file PrtOptions will then be saved inside
  91. Powerbase itself. Note also that, provided the Print options window has not
  92. been closed, the Cancel button will restore it to the state it was in when
  93. you opened it.
  94.  
  95. 14.4  CSV options
  96.  
  97. It was explained in 8.2 how to access the CSV options window and what the
  98. pop-up menus and option switches are for.  The buttons Save choices, as
  99. default, in database, Load default and Cancel work in a similar way to that
  100. described above for the Print options window − with one notable difference.
  101. No Save box appears when you Save choices in database; the file is saved as
  102. a plain text file called CSVoptions. This more limited behaviour has been
  103. chosen because, although you might want several Print options files for
  104. different jobs, it is unlikely that you will have a use for several CSV
  105. options files.
  106.  
  107. 14.5  Preferences
  108.  
  109. Several previous references have been made to the Preferences window which
  110. is opened from the icon-bar menu. A full description of the choices offered
  111. in this window follows.
  112.  
  113. 14.5.1 Separators in date and time fields
  114.  
  115. By default dates have the format dd-mm-yy or dd-mm-yyyy, i.e. the separator
  116. is a hyphen. You might wish to use a colon, full-stop, slash or other
  117. character. You may type any non-numeric character when entering dates and
  118. Powerbase will re-format the field to use the specified character.  Only
  119. fields actually defined to be of type Date behave in this way.
  120.  
  121. Fields defined to be of type Time have the form hh:mm:ss, i.e a colon is
  122. used as the separator. As in the case of dates, you may type any non-numeral
  123. you like during data entry and Powerbase will reformat the time as above. 
  124.  
  125. To change either of these separators type the required character into the
  126. writable icon in place of the default.
  127.  
  128. 14.5.2 Wild-cards
  129.  
  130. The use of wild-card characters is described in 2.7.5 and 3.3.4.  By default
  131. “#” represents a single character and “$” a group of characters which need
  132. not be matched.  You may change either or both wild-card characters if you
  133. wish in the same way as described above for date and time separators.
  134.  
  135. 14.5.3 Option switches
  136.  
  137. Launch new copy, when ON, causes another copy of Powerbase to be loaded when
  138. you double-click on a database, instead of closing the current database.
  139. This can be useful if you want to access several databases at once, as one
  140. copy Powerbase only supports the use of a single database. If there is a
  141. dormant copy of Powerbase on the icon-bar (i.e. one with “No data” under its
  142. icon) then double-clicking a database sends it to that copy rather than
  143. launching a new one. With the switch OFF double-clicking on a database
  144. closes down an already-open database before opening the new one. Even then
  145. you can load multiple copies of Powerbase by double-clicking on Powerbase
  146. itself and then open a different database in each by dragging the databases
  147. to the icons. 
  148.  
  149. Recalculate on opening affects Composite fields (see 6.2) whose associated
  150. formulae make use of the system variable TIME$. With the switch OFF the
  151. contents of such fields are recalculated only when a record is displayed.
  152. This might not be good enough where, for example, TIME$ is used in a User
  153. function (see 6.3) to keep track of people’s current ages. Selecting the
  154. switch causes Powerbase to scan the whole file and update such fields when
  155. the database is first opened.
  156.  
  157.  
  158.  
  159. Blank record on deletion  If this switch is OFF then deleting a record from
  160. the database merely removes all references to its key(s) from the index(es),
  161. leaving the actual record data untouched in the Database file. Although such
  162. “deleted” records will be overwritten when new records are entered, the
  163. situation may be deemed unsatisfactory from a security point of view since
  164. the “deleted” records can be examined by simply loading Database into Edit.
  165. If the switch is ON deletion causes the relevant record to be over-written
  166. with a blank record.
  167.  
  168. Keep descriptor with data alters the behaviour of fields as they are dragged
  169. around the screen when designing the record layout.  With the switch OFF you
  170. may drag the data field and the descriptor independently of one another.
  171. With the switch ON this is true only of the descriptor; if you drag the data
  172. field the descriptor jumps to its “normal” position to the left of the data
  173. field as soon as you release the mouse button. 
  174.  
  175. Validate input turns data validation (see Ch 5) ON and OFF.  If you ever
  176. find yourself unable to escape from a field linked to a validation table you
  177. can bring up the Preferences window, deselect this switch and try again.
  178.  
  179. Display linked table data  Every time the caret enters a field with a link
  180. to a validation table a window showing data from the relevant validation
  181. table row appears to the right of the field if the switch is ON. This is
  182. either useful or infuriating, depending on your point of view. If turned OFF
  183. you can still call up the window for a specific field by double-clicking on
  184. the field with SELECT (see 5.5).
  185.  
  186. Warn of external deletion  Since deleting data from an External field (see
  187. 2.6) involves the deletion of an actual file you will probably appreciate
  188. being warned when you are about to do it. With this switch ON you will be
  189. given a warning and the opportunity to change your mind.
  190.  
  191. Warn of duplicates  The creation of records with identical primary keys can
  192. be prohibited if so desired (see 11.2.1). Normally, however, they are
  193. permitted. You may, if you wish, turn this switch ON to issue a warning that
  194. such a record is about to be created.
  195.  
  196. Default action on Return  According to the Acorn Style Guide for RISC OS
  197. typing Return anywhere inside a dialogue box ought to have the same effect
  198. as clicking on the default action button (that’s the one with the yellow
  199. channel border) regardless of which writable icon the caret is in. If that’s
  200. what you want then turn this switch ON. Many users (including the author!)
  201. hate it and prefer the default action to take place only if the caret is in
  202. the last writable icon when Return is typed. Hence the default setting,
  203. which is OFF.
  204.  
  205. Strip trailing spaces should normally be left ON to avoid unwanted spaces at
  206. the right of data fields. It is easy to press the space-bar by accident when
  207. entering data quickly and you might not notice that a field has one or more
  208. spaces between the end of the last word and the caret. 
  209.  
  210. Balance every <n> records  The need to balance indices and the use of this
  211. option is explained in 10.6.
  212.  
  213. Remember place in subfile  With this switch OFF a change of subfile leads to
  214. the display of the first record in the new subfile. If you are doing a lot
  215. of hopping back and forth between subfiles to inspect specific records you
  216. might want to select the switch. It is then just as if you had bookmarks in
  217. separate chapters of a book; when you return to a subfile you have
  218. previously visited you will see the same record you were viewing when you
  219. left that subfile.
  220.  
  221. 14.5.4 Save indices (Default: Manual)
  222.  
  223. Indices are always saved whenever you close a database or quit Powerbase and
  224. only fear of power cuts or system failure (which includes some kind person
  225. switching off your computer!) need make you concerned about saving them
  226. yourself. With the Manual setting nothing happens during normal working
  227. unless you click Force update on the keypad.  Selecting Automatic or Warn
  228. only allows you to type in a suitable time interval (default = 10 min) at
  229. which Powerbase will either issue a warning to save your indices (using
  230. Force update) or actually save them for you.
  231.  
  232. 14.5.5 Application for ImpulseII data-merging
  233.  
  234. As noted elsewhere (9.2) Powerbase can merge directly into a
  235. suitably-formatted Impression document by simply dropping the document icon
  236. onto the record window. The dialogue box which then appears contains a
  237. writable icon which shows the application with which Powerbase will merge.
  238. This name  is, by default, “Impression”, but may be altered by users for
  239. their own purposes. An application which will receive data from Powerbase in
  240. this way must make use of the ImpulseII protocols as defined by Computer
  241. Concepts. Even if you are using Style or Publisher the name to which these
  242. applications respond is still “Impression”. 
  243.  
  244. 14.5.6 Save choices
  245.  
  246. This section of the window works exactly as it does for CSV options (see
  247. 14.4) as do the Load default and Cancel buttons.
  248.  
  249. 14.6  Colours of key fields and linked fields
  250.  
  251. These may be selected in a window reached by choosing Colours from the
  252. Miscellaneous submenu. The following default colours are used:− 
  253.  
  254.         Type                            Foreground      Background
  255.  
  256.         Descriptor of key field (inactive)              dark blue              
  257. -
  258.  
  259.         Descriptor of key field (active)                red                            
  260. -
  261.  
  262.         Data icon of primary key field  (s)                     -              
  263. pale yellow
  264.  
  265.         Data icon of field linked to validation table   dark green                   
  266.  
  267. Clicking with SELECT on the descriptor and data icons within this window
  268. makes either the foreground or background (depending on the setting of the
  269. two radio buttons) cycle through the available colours. Clicking with ADJUST
  270. cycles through the colours in the opposite direction. 
  271.  
  272. Apply allows you to see the effect of the changes and Defaults enables you
  273. to return the colours to what they were before, provided you haven’t clicked
  274. on Save choices. The latter applies the new colours and saves the changes so
  275. that they are effective next time the database is used. Different databases
  276. may have different colours.
  277.  
  278. 14.7  The Config file
  279.  
  280. Inside the Powerbase application directory is a sub-directory called
  281. Resources. The file Config, which will be found there, determines certain
  282. aspects of the program’s operation which will seldom need changing. Changes
  283. made to Config take effect only when Powerbase is next loaded. If you load
  284. the file into Edit you will see lines which determine:−
  285.  
  286. •       maximum number of fields per record (default = 100, maximum = 127)
  287.  
  288. •       maximum number of subsidiary indices (default = 10)
  289.  
  290. •       maximum number of validation tables (default = 10)
  291.  
  292. •       maximum number of pop-up menu fields (default = 3)
  293.  
  294. •       maximum number of columns in a validation table (default = 20)
  295.  
  296. •       whether or not submenus off the icon-bar menu open on the left
  297. instead of on the right as normal.  This feature of RISC OS 3 avoids the
  298. overlapping submenus which can occur but is so seldom seen that most users
  299. can’t cope with it at all!  Put YES, instead of NO, at the start of the line
  300. if you want the icon-bar menu to work like that. 
  301.  
  302. •       background colour of record window.  Default (1) is pale grey. 
  303.  
  304. •       whether or not keyboard is placed in caps lock mode when user is
  305. being asked to input a password.  This is to avoid annoying users who set up
  306. password-protected databases with earlier versions of Powerbase which
  307. allowed only uppercase letters in passwords.  Such users will wish to place
  308. YES at the start of this line.  Current versions of Powerbase allow both
  309. upper and lowercase letters and users will not want caps lock to be forced
  310. on.
  311.  
  312. When altering Config be sure to leave a space between the number (or YES/NO)
  313. and the explanation.
  314.  
  315. 14.8  The Messages file
  316.  
  317. This too is a text file in the Resources sub-directory.  It contains all the
  318. error and warning messages used by Powerbase and all the messages for use
  319. with the Acorn interactive Help application. The wording of these may be
  320. altered if you wish.  Many error messages contain the string “%0” and
  321. possibly “%1” and “%2”. Items of data are substituted for these when the
  322. message is printed so it is important not to omit them or alter their
  323. logical placement within the message.